using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;

namespace iGrabber
{
    static class Program
    {
        private static string debugLogPath = System.Environment.CurrentDirectory + "\\igrabber.log";

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());
        }

        public static void WriteLog(string text)
        {
            StreamWriter writer = new StreamWriter(debugLogPath, true);
            writer.WriteLine(DateTime.Now.ToShortTimeString() + ": " + text);
            writer.Close();
        }
    }
}